<template>
  <div>
    <date-picker
      :years="years"
      :current-date="currentDate"
      @date-change="handleDateChange"
    ></date-picker>
  </div>
</template>

<script setup lang="ts">
import DatePicker from './components/date-picker/index.vue';

const years = [
  2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012,
  2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
];
const currentDate = [2021, 2, 19];

function handleDateChange(currentDate: number[]) {
  console.log(currentDate);
}
</script>